import theme from "@/const/theme";

export const uviewConfig = {
  // 修改$u.config对象的属性
  // 修改$u.props对象的属性
  props: {
    // 修改radio组件的activeColor参数的默认值，相当于执行 uni.$u.props.radio.activeColor = '#xxxxx'
    radio: {
      activeColor: theme.themeColor.primary,
    },
    checkbox: {
      activeColor: theme.themeColor.primary,
    },
    slider: {
      activeColor: theme.themeColor.primary,
    },
    lineProgress: {
      activeColor: theme.themeColor.primary,
    },
    switch: {
      activeColor: theme.themeColor.primary,
    },
    calendar: {
      color: theme.themeColor.primary,
    },
    steps: {
      activeColor: theme.themeColor.primary,
    },
    codeInput: {
      borderColor: theme.themeColor.primary,
    },
    subsection: {
      activeColor: theme.themeColor.primary,
    },
    modal: {
      confirmColor: theme.themeColor.primary,
    },
    picker: {
      confirmColor: theme.themeColor.primary,
    },
    datetimePicker: {
      confirmColor: theme.themeColor.primary,
    },
  },
};
